package com.swjd.util;

import com.alibaba.fastjson.JSONObject;

/**
 * Created by hxl on 2019/6/3  8:34
 */
public class BecomeJson {

    /*
     * 通过增删改返回的数值判断是否执行成功,返回OK或者NO
     * */
    public static String isOk(int num) {
        JSONObject json = new JSONObject();
        json.put("Message", num > 0 ? "OK" : "NO");
        return json.toString();
    }

}
